<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://unpkg.com/vue@next"></script>
</head>
<body>
<div id="app">
    <h1 v-if="cases.result==='error'" style="color:red">{{cases.title}}</h1>
    <h1 v-else-if="cases.result==='success'" style="color:green">{{cases.title}}</h1>
    <h1 v-else style="color:black">{{cases.title}}</h1>
</div>
</body>
<script>
    const app = Vue.createApp({
        data() {
            return {
                cases:{
                    case_id: 1,
                    title:"你好，我是xxx",
                    result: "success"
                }
            }
        },
        methods:{
        }
    }).mount("#app")
</script>
</html>